﻿@model IEnumerable<GeoBox.Database.GpsPoint>

@{
    ViewBag.Title = "Index";
}

<h2>GpsPoints</h2>

<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Latitude)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Longitude)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.UtcTime)
        </th>
        <th>
            Bing
        </th>
    </tr>

    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.Latitude)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Longitude)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.UtcTime)
            </td>
            <td>
                <a href="@string.Format("http://www.bing.com/maps/?cp={1}~{0}&lvl=18&sty=r", item.Longitude, item.Latitude)">Bing Maps</a>
            </td>
        </tr>
    }

</table>
